import { get } from '../util';

export const getList = ({ dispatch, params }) => {
    get('/getlist')
        .then((response) => {
            return response.json()
        }).then((value) => {
            dispatch({ type: 'home-get-list', value: value.list })
        }).catch((ex) => {
            ///失败
        });
}
